﻿#region Using Directives

using System;

#endregion Using Directives


namespace Kongo.Tags
{
    internal class CommentTag : BaseTag
    {
        #region Methods

        protected override bool IsEndTag(string name)
        {
            if (name == "end" || name == "endcomment")
                return true;

            return false;
        }

        #endregion Methods


        #region Properties

        public override bool SupportsChildNodes
        {
            get { return true; }
        }

        #endregion Properties


        #region Constructors

        public CommentTag(string[] args) : base(args) { }

        #endregion Constructors


        #region Types

        public class CommentTagCreator : ITagCreator
        {
            #region Methods

            public Tag Create(string[] args)
            {
                return new CommentTag(args);
            }

            #endregion Methods
        }

        #endregion Types
    }
}
